package com.wzy.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.wzy.entity.User;

public interface UserMapper {
	
	int count();
	
	List<User> list(@Param("from") int from,@Param("pageSize") int pageSize);
	
	
	List<User> getUserListByUserName(String userName);
	
	List<User> getUserListByUser(User user);
	
	List<User> getUserListByMap(int[] roleIds);
	
	List<User> getUserListByList(List roleIds);
	
	List<User> getUserListByList_choose(@Param("userName") String userName,@Param("roleId") int roleId,@Param("userCode") String userCode);
	
	List<User> getUserListByMap2(Map<String, Object> map);
	
	List<User> getUserListByMap3(Map<String, Object> map);
	
	Integer add(User user);
	
	Integer update(User user);
	
	Integer updatePwd(@Param("password") String pwd,@Param("id") int id);
	
	List<User> getUserListByRoleId(int userRole);
	
	List<User> getUserById(int id);
	
	
}
